import QtQuick 1.0
import com.meego 1.0
import "CommomUtil.js" as CommonUtil
Item{
    id:delegate
    width: 480
    height: 50

   Rectangle{
        id:rect
        color: mouseArea.pressed ? "#54afff" :"#ebeff9"
        anchors.fill: parent


         Text{
                id:brand
                text: brandName

                font{
                    family:"Helvetica";pointSize:16;bold:true
                }

                anchors.left: parent.left
                anchors.leftMargin: 30
                anchors.verticalCenter: parent.verticalCenter

            }

        Rectangle{
            width: parent.width;height: 2
            color:"#cccccc"
            anchors.bottom: parent.bottom
        }


        MouseArea{
            id:mouseArea
            anchors.fill: rect
            onClicked:{
                delegate.ListView.view.currentIndex=index
                console.log("go to forum:"+brandName);
                console.log("go to brandId:"+brandId);

            }

          }
    }
}
